﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="wucConsultarStock.ascx.vb" Inherits="controles_wucConsultarStock" %>
<style type="text/css">
#messageBox
{
border-right: 1px solid #000000;
position: absolute;
width: 277px;
height: 168px;
z-index: 1;
background-color: #EFEFEF;
border-style: solid;
border-width: 1px;
display: none;
}
#closeButt
{
width: 100%;
height: 10px;
z-index: 1;
cursor: pointer;
left: 0px;
top: 0px;
background-color: #397DF3;
}
#contents
{
width: 100%;
height: auto;
font-size: small;
font-family: Verdana;
z-index: 2;
border-style: solid;
border-width: 2px;
border-color: inherit;
font-size: 11PX;
font-family: Verdana;
}
</style>
<body style="margin-top: 0px; margin-left: 0px; width: 100%">
<asp:UpdatePanel ID="UpdatePanel20" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
        <asp:HiddenField ID="hdfEmpresa" runat="server" />
   </ContentTemplate>
</asp:UpdatePanel>

<table style="width: 100%;" cellpadding="0" cellspacing="0" border="1">
<tr>
<td>
<table cellpadding="1" cellspacing="0" width="100%">
<tr>
<td style="width:40%;">
<table cellpadding="1" cellspacing="0" width="20%">
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td><asp:Label ID="Label6" runat="server" SkinID="lblNormal" Text="Tipos de inmueble:" EnableViewState="False"></asp:Label></td>
<td></td>
</tr>
<tr>
<td>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<select id="selTipoInmueble" runat="server" class="CssddlNormal" name="D1"><option></option></select>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<td align="right"><asp:Button ID="btnMostrar" runat="server" SkinID="btnNormalSkin" Text="Mostrar" /></td>
</tr>
<tr>
<td colspan="2" align="center">
    &nbsp;</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</td>
<td style="width:60%;" align="center">
<table border="1" cellpadding="1" cellspacing="0" width="90%">
<tr align="center">
<td colspan="5"><asp:Label ID="Label37" runat="server" Text="Leyenda" SkinID="lblNormalNegrita"></asp:Label></td>
</tr>
<tr>
<td rowspan="3" align="center"><asp:Label ID="Label38" runat="server" Text="Disponible" SkinID="lblNormalNegrita"></asp:Label></td>
<td bgcolor="#0066CC"><asp:Label ID="Label47" runat="server" Text="Separación Temporal" SkinID="lblNormal" ForeColor="White" ></asp:Label></td>
<td bgcolor="#7EE07E" colspan="2" align="center"><asp:Label ID="lblVentas" runat="server" Text="Ventas"  SkinID="lblNormal"></asp:Label></td>
<td bgcolor="Aqua"><asp:Label ID="Label44" runat="server" Text="Cancelado" SkinID="lblNormal"></asp:Label></td>
</tr>
<tr>
<td bgcolor="Yellow"><asp:Label ID="Label48" runat="server" Text="Separación" SkinID="lblNormal"></asp:Label></td>
<td bgcolor="#99CCFF"><asp:Label ID="Label40" runat="server" Text="Cuota Inicial" SkinID="lblNormal"></asp:Label></td>
<td bgcolor="#FFCC99"><asp:Label ID="Label42" runat="server" Text="Financiamiento" SkinID="lblNormal"></asp:Label></td>
<td bgcolor="#336600"><asp:Label ID="Label45" runat="server" Text="Entregado" SkinID="lblNormal" ForeColor="White" ></asp:Label></td>
</tr>
<tr>
<td bgcolor="#FFB928"><asp:Label ID="lblSepPagos" runat="server" Text="Separación con pagos" SkinID="lblNormal"></asp:Label></td>
<td bgcolor="#9933FF"><asp:Label ID="Label41" runat="server" Text="Inicial / Financiamiento cancelado" SkinID="lblNormal" ForeColor="White" ></asp:Label></td>
<td bgcolor="#FF0066"><asp:Label ID="Label43" runat="server" Text="Financiamiento directo" SkinID="lblNormal" ForeColor="White" ></asp:Label></td>
<td bgcolor="#E44146"><asp:Label ID="Label46" runat="server" Text="Bloqueado" SkinID="lblNormal" ForeColor="White" ></asp:Label></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr class="filaEncabezado">
<td><asp:Label ID="Label27" runat="server" SkinID="lblSubTituloTexto" Text="Navegador de Unidades Inmobiliarias" Font-Bold="True"></asp:Label></td>
</tr>
<tr>
<td>
<asp:UpdatePanel ID="upEdificio" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Literal ID="LiteralCS" runat="server" Mode="Transform"></asp:Literal>
<div id='messageBox'>
<div id='contents'>
</div>
</div>
<asp:Table ID="tblInmueble" runat="server" CellPadding="3" CellSpacing="3" Width="100%">
</asp:Table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnMostrar" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td>
<asp:UpdatePanel ID="upTotales" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table cellpadding="0" cellspacing="1" style="width: 100%; border-style: solid; border-width: 1px;">
<tr>
<td valign="top" style="width:40%;">
<table width="100%">
<tr>
<td colspan="3" align="left"><asp:Label ID="lblTotales" runat="server" SkinID="lblNormalNegrita" Text="Totales"></asp:Label></td>
</tr>
<tr>
<td>
<table border="1" cellpadding="0" cellspacing="1" style="width: 100%; border-style: solid; border-width: 1px;">
<tr>
<td><asp:Label ID="Label3" runat="server" SkinID="lblNormal" Text="Disponibles"></asp:Label></td>
<td align="right"><asp:Label ID="lblDisponibles" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
<tr>
<td bgcolor="#0066CC"><asp:Label ID="Label2" runat="server" ForeColor="White" SkinID="lblNormal" Text="Separación temporal"></asp:Label></td>
<td align="right"><asp:Label ID="lblSeparacionTemporal" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
<tr>
<td bgcolor="Yellow"><asp:Label ID="Label4" runat="server" SkinID="lblNormal" Text="Separación"></asp:Label></td>
<td align="right"><asp:Label ID="lblSeparacion" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
<tr>
<td bgcolor="#FFB928">
<asp:UpdatePanel ID="udtPagos2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Label ID="lblSepPagos2" runat="server" SkinID="lblNormal" Text="Separación con pagos"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>

</td>
<td align="right"><asp:Label ID="lblPagoSinMinuta" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
</table>
</td>
<td>
<table border="1" cellpadding="0" cellspacing="1" style="width: 100%; border-style: solid; border-width: 1px;">
<tr>
<td bgcolor="#7EE07E"><asp:Label ID="lblVentas2" runat="server" SkinID="lblNormal" Text="Venta"></asp:Label></td>
<td align="right"><asp:Label ID="lblVenta" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
<tr>
<td bgcolor="#99CCFF"><asp:Label ID="Label17" runat="server" SkinID="lblNormal" Text="Cuota inicial"></asp:Label></td>
<td align="right"><asp:Label ID="lblCuotaInicial" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
<tr>
<td bgcolor="#9933FF"><asp:Label ID="Label23" runat="server" ForeColor="White" SkinID="lblNormal" Text="Inicial / Financiamiento cancelado"></asp:Label></td>
<td align="right"><asp:Label ID="lblInicial_FincCancelado" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
<tr>
<td bgcolor="#FFCC99"><asp:Label ID="Label19" runat="server" SkinID="lblNormal" Text="Financiamiento hipotecario"></asp:Label></td>
<td align="right"><asp:Label ID="lblFinanciamiento" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
<tr>
<td bgcolor="#FF0066"><asp:Label ID="Label22" runat="server" ForeColor="White" SkinID="lblNormal" Text="Financiamiento directo"></asp:Label></td>
<td align="right"><asp:Label ID="lblFinanciamientoDirecto" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
</table>
</td>
<td>
<table border="1" cellpadding="0" cellspacing="1" style="width: 100%; border-style: solid; border-width: 1px;">
<tr>
<td bgcolor="Aqua"><asp:Label ID="Label21" runat="server" SkinID="lblNormal" Text="Cancelado"></asp:Label></td>
<td align="right"><asp:Label ID="lblCancelado" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
<tr>
<td bgcolor="#336600"><asp:Label ID="Label18" runat="server" ForeColor="White" SkinID="lblNormal" Text="Entregado"></asp:Label></td>
<td align="right"><asp:Label ID="lblEntregado" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
<tr>
<td bgcolor="#E44146"><asp:Label ID="Label5" runat="server" ForeColor="White" SkinID="lblNormal" Text="Bloqueados"></asp:Label></td>
<td align="right"><asp:Label ID="lblBloqueado" runat="server" SkinID="lblNormal" Text="0"></asp:Label></td>
</tr>
</table>
</td>
</tr>
<tr>
    <td colspan="3"><asp:Literal ID="ltrRepGerencial" runat="server"></asp:Literal></td>
</tr>
</table>
</td>
<td align="center" style="width:60%;">
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0">
<ProgressTemplate>
<div id="divProgress" class="divProgreso">
<img src="../imagenes/ajax-loader.gif" align="middle" alt="Procesando" />
<asp:Label ID="lblprogreso" runat="server" Text=" Procesando..." CssClass="EditarLabel"></asp:Label>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<flan:UpdateProgressOverlayExtender ID="UpdateProgressOverlayExtender1" runat="server" CssClass="updateProgress" OverlayType="Browser" TargetControlID="UpdateProgress1"/>
<script language="javascript" type="text/jscript">
function showMsg(obj, msg, event) {
var mouseX = Math.round(event.clientX);
var mouseY = Math.round(event.clientY);
if (mouseX >= 1000) { mouseX -= 300; }
messageBox.style.left = mouseX + "px";    
messageBox.style.top = obj.offsetTop + 150
var inf = msg.replace("*", "<br>").replace("*", "<br>").replace("*", "<br>").replace("*", "<br>").replace("*", "<br>").replace("*", "<br>").replace("*", "<br>").replace("*", "<br>").replace("*", "<br>").replace("*", "<br>").replace("*", "<br>");
contents.innerHTML = inf + "<p>" 
messageBox.style.display = "block"
}
function hideMsg() {
messageBox.style.display = "none"
}
function cerrarPopup() {
$find(top.window.document.getElementById('mpDetalle')).hide();
return true;
}
</script>
<script language="javascript" type="text/jscript">
    if ($get("<%= hdfEmpresa.ClientID%>").value.toUpperCase() == 'ECARAL') {
        $get("<%= lblVentas.ClientID%>").innerHTML = 'Minutas';
        $get("<%= lblVentas2.ClientID%>").innerHTML = 'Minutas';
        $get("<%= lblSepPagos.ClientID%>").innerHTML = 'Vendidos';
        $get("<%= lblSepPagos2.ClientID%>").innerHTML = 'Vendidos';
    }
</script>
</body>